const global = {
	state: {
		heightData: {},
		albumData: [],
		cityObject: {},
		shop_car: {
			cartList: [],
			selectCartList: []
		},
		settleList: [],
		addressInfo: {},
		deliveryScope: '',
		deliveryScope2: '',
		userInfo: {},
		commodityEdit:{},
	},

	mutations: {
		SET_USERINFO: (state, userInfo) => {
			state.userInfo = userInfo
		},
		SET_COMMODITY: (state, commodityEdit) => {
			state.commodityEdit = commodityEdit
		},
		SET_DELIVERY: (state, deliveryScope2) => {
			state.deliveryScope = deliveryScope2
		},
		SET_DELIVERY2: (state, deliveryScope) => {
			state.deliveryScope2 = deliveryScope
		},
		SET_ADDRESS: (state, addressInfo) => {
			state.addressInfo = addressInfo
		},
		SET_SETTLE: (state, settleList) => {
			state.settleList = settleList
		},
		SET_SHOP_CAR: (state, shop_car) => {
			state.shop_car = shop_car
		},
		SET_CITYOBJECT: (state, city) => {
			state.cityObject = city
		},
		HEIGHT_DATA: (state, heightData) => {
			state.heightData = heightData
		},
		ADD_ALBUM: (state, albumData) => {
			state.albumData = albumData
		}
	},

	actions: {}
}

export default global